package com.zz.zzc;

import java.util.HashMap;
import java.util.Map;

public class MapDemo17 {

	public static void main(String[] args) {
		Map m1 = new HashMap();
		/**
		 * map存值的格式：键值对<key,value>
		 */
		m1.put("name", "张三");
		m1.put("age", 18);
		m1.put("sex", "男");
		String s = (String)m1.get("name"); //(数据类型)强制转换
		System.out.println(s);
		
		
	}

}
